﻿@using QDT.Common
@using QDT.Core
@using QDT.MVC.UI
@model QDT.Common.IPagedList<QDT.Core.Members.UserTransLog>
@{
    ViewBag.Title = "交易明细";
}
<div class="ui-body">
        <div class="ui-inner">
            <div class="ui-grid-row">

                 @Html.Partial("_UserMenu", MenuRoute.TradeDetail )

                <div class="ui-grid-20">

                    <div class="ui-box">

                        <div class="ui-table-container">
                            <table class="ui-table ui-table-inbox thead-ext"><!-- 可以在class中加入ui-table-inbox或ui-table-noborder分别适应不同的情况 -->
                                <thead>
                                    <tr>
                                        <th>时间</th>
                                        <th>交易类型<em class="ft-bar">|</em>流水号</th>
                                        <th style="width: 220px;">明细</th>
                                        <th>对方</th>
                                        <th>金额</th>
                                        <th>冻结金额</th>
                                        <th>可用余额(元)</th>
                                    </tr>
                                </thead><!-- 表头可选 -->
                                <tbody>
                                    @foreach (var m in Model)
                                    {
                                        <tr>
                                        <td>
                                            <p>@m.Time.ToShortDateString()</p>
                                            <p>@m.Time.ToShortTimeString()</p>
                                        </td>
                                        <td>
                                            <p>@(m.Trade==0 ? "-" : m.Trade.ToLocalizable())</p>
                                            <p>@m.ID</p>
                                        </td>
                                        <td>@m.Info</td>
                                        <td>@(string.IsNullOrWhiteSpace(m.TradeUser) ? "-" : m.TradeUser.ToConfuse(1,1,3))</td>
                                        <td style="@(m.Money>0?"color:#27ae60":"color: #f39c12")">@m.Money.ToMoney()</td>
                                        <td style="color: #95A5A6;">@m.LockMoney.ToMoney()</td>
                                        <td>@(m.OverMoney<0? "-": m.OverMoney.ToMoney()+"")</td>
                                    </tr>
                                    }
                                </tbody>
                            </table>
                        </div>

                        @Html.ClientPager(Model)

                    </div>

                </div>

            </div>
        </div>
    </div>